lst_month=[31,28,31,30,31,30,31,31,30,31,30,31]
month=eval(input("请输入月份"))
while month != 0:
    print("{}月份有{}天".format(month,lst_month[month-1]))
    moth=eval(input("请输入月份"))